﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Drawing;


namespace HAVTKPack
{
[Serializable ]
   public  class ContourTagging
    {

    public ContourTagging()
        { 
        
        
        }


        bool _isShowTagging = true;
        /// <summary>
        /// 是否显示标注
        /// </summary>
        public bool IsShowTagging
        {
            get { return _isShowTagging; }
            set { _isShowTagging = value; }
        }


        Color _tagColor = Color.Black;
        /// <summary>
        /// 标注颜色
        /// </summary>
        public Color TagColor
        {
            get { return _tagColor; }
            set { _tagColor = value; }
        }


        int _fontSize = 10;
        /// <summary>
        /// 标注字体大小
        /// </summary>
        public int FontSize
        {
            get { return _fontSize; }
            set { _fontSize = value; }
        }

        int _maskPointNum = 20;
        /// <summary>
        /// 采样点个数 最多多少个（标注最多多少个）
        /// </summary>
        public int MaskPointNum
        {
            get { return _maskPointNum; }
            set { _maskPointNum = value; }
        }




        public void UpdateContourTagging(ContourTagging contourTagging)
        {
            if (contourTagging != null)
            {

                if (this._isShowTagging != contourTagging._isShowTagging)
                {
                    this._isShowTagging = contourTagging._isShowTagging;
                }


                if (this._tagColor != contourTagging._tagColor)
                {
                    this._tagColor = contourTagging._tagColor;
                }

                if (this._fontSize != contourTagging._fontSize)
                {
                    this._fontSize = contourTagging._fontSize;
                }

                if (this._maskPointNum != contourTagging._maskPointNum)
                {
                    this._maskPointNum = contourTagging._maskPointNum;
                }





                //this._isContours = contourSetup._isContours;

                //this._contourMode = contourSetup._contourMode;

                //this._contourFillOrLine = contourSetup._contourFillOrLine;

                //this.ResetContours(contourSetup._displayContours);

            }


        }






    }
}
